using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using CMS.Core.DataInterfaces;
using CMS.Core.Domain;
using CMS.Data;
using CMS.Presenters.Presenters.ListManager;
using CMS.Presenters.Views.ListManager;
using System.Collections.Generic;
using AjaxPro;

namespace CMS.Web.ListManager
{
    public partial class MainScreen : BaseUserControl, IMainScreenView
    {
        MainScreenPresenter presenter;

        public MainScreen()
        {
            this.presenter = new MainScreenPresenter(this, NHibernateDaoFactory.Instance.GetDonThuDao());
        }        

        protected void Page_Load(object sender, EventArgs e)
        {
            this.RaiseClientEvent();         
        }

        protected void RaiseClientEvent()
        {
            Utility.RegisterTypeForAjax(typeof(CMS.Presenters.Presenters.ListManager.MainScreenPresenter));
        }

        #region IMainScreenView Members

        public bool IsValid
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        #endregion
    }
}